//
//  APHomeBallItem.m
//  AqualPolo
//
//  Created by dong on 2024/5/3.
//

#import "APHomeBallItem.h"

@implementation APHomeBallItem

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _imageView = [[UIImageView alloc] init];
        [self addSubview:_imageView];
        [_imageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self);
        }];
    }
    return self;
}

- (void)setBallType:(APBallType)ballType{
    _ballType = ballType;
    _imageView.image = [UIImage imageNamed:[BaseDataManager ballImageName:ballType]];
}
@end
